#---
# Excerpted from "Everyday Scripting in Ruby"
# We make no guarantees that this code is fit for any purpose. 
# Visit http://www.pragmaticprogrammer.com/titles/bmsft for more book information.
#---
#class Array
	
	#def my_each
	#end
	
#end

class Array
	
	def my_each
		len = 0
		while len < self.size do
			yield self[len]
			len += 1
		end 
		self
	end
	
end

















